﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Troschuetz.Random;

namespace Kindohm.Life.Library
{
    public static class NormalGenerator
    {
        static NormalDistribution normal = new NormalDistribution();

        public static int Next(double mu, double sigma)
        {
            normal.Mu = mu;
            normal.Sigma = sigma;
            return Convert.ToInt32(normal.NextDouble());
        }

        public static double NextDouble(double mu, double sigma)
        {
            normal.Mu = mu;
            normal.Sigma = sigma;
            return normal.NextDouble();
        }
    }
}
